import selenium
import selenium.webdriver #模拟浏览器
import re

def getnumberbyname(searchname):
    url="https://sou.zhaopin.com/?jl=648&kw="+searchname+"&kt=3&sf=0&st=0"
    driver=selenium.webdriver.Firefox()
    driver.get(url)
    pagesource=driver.page_source #抓取网页源代码

    restr="(\\w+)"  
    regex=re.compile(restr,re.IGNORECASE)
    mylist=regex.findall(pagesource)
    # driver.close() #关闭
    return mylist

print(getnumberbyname("前端"))